package com.boot.consumer.service.impl;


import com.ego.inter.domain.UserAddress;
import com.ego.inter.service.OrderService;
import com.ego.inter.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @date 2020/10/12 14:08
 */
@Service
public class OrderServiceImpl implements OrderService {

//    @Reference
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @Override
    public List<UserAddress> initOrder() {
        return userService.queryAllAddress();
    }
}
